import React from "react";
import * as API from "@/services";
import {JournalPeriodDisplayType} from "@/pages/JournalPage/JournalDetail/commons/JournalPeriodList";

export type JournalDetailContextType = {
  journal?: API.FrontJournal;
  journalId?: API.EntityId;

  journalPeriodDisplayType?: JournalPeriodDisplayType;
  setJournalPeriodDisplayType?: (type: JournalPeriodDisplayType) => void;
};

export const JournalDetailContext = React.createContext<JournalDetailContextType>({});
